package com.sc.nft.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sc.nft.enums.BoxEquityTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
@Data
public class SaasTaskAwardDetailsDTO {
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "任务奖励表id")
    @JsonIgnore
    private Long taskAwardId;

    @ApiModelProperty(value = "任务id")
    @JsonIgnore
    private Long saasTaskId;

    @ApiModelProperty(value = "藏品和权益道具卡的名称,只在查询获取list集合的时候有用 修改和新增时无效")
    private String firstTitle;

    @ApiModelProperty(value = "权益道具id")
    private Long equityPropsId;

    @ApiModelProperty(value = "奖励数量")
    @Range(min = 1, max = 99, message = "奖励数量区间不正确")
    private Integer quantity;

    @ApiModelProperty(value = "权益道具类型")
    @NotNull(message = "权益道具类型不能为空")
    private BoxEquityTypeEnum boxEquityType;

}
